#pragma once
#include "common/sys_thread.hpp"
#include "sys_lock.hpp"
class master_thrd: public CThread
{
    public:
    master_thrd(int *i,  std::string thread_mame, ThreadType thread_type, ThreadStartType start_type);
    ~master_thrd();

    private:
        void init();
        void task();
        void clean_up(){;}
        int *_var;
};

class slave_thrd: public CThread
{
    public:
    slave_thrd(int *i,  std::string thread_mame, ThreadType thread_type, ThreadStartType start_type);
    ~slave_thrd();

    private:
        void init();
        void task();
        void clean_up(){;}
        int *_var;
};